<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>CUTLASS: cutlass::layout::ContiguousMatrix Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="cutlass-logo-small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CUTLASS
   </div>
   <div id="projectbrief">CUDA Templates for Linear Algebra Subroutines and Solvers</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecutlass.html">cutlass</a></li><li class="navelem"><a class="el" href="namespacecutlass_1_1layout.html">layout</a></li><li class="navelem"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html">ContiguousMatrix</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="structcutlass_1_1layout_1_1ContiguousMatrix-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cutlass::layout::ContiguousMatrix Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="layout_2matrix_8h_source.html">matrix.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a5cac7085fc5058fce51bc771b94f49d5"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> = int32_t</td></tr>
<tr class="memdesc:a5cac7085fc5058fce51bc771b94f49d5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index type used for coordinates.  <a href="#a5cac7085fc5058fce51bc771b94f49d5">More...</a><br /></td></tr>
<tr class="separator:a5cac7085fc5058fce51bc771b94f49d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f84cee3bc8d376971745b00f2eade68"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> = int64_t</td></tr>
<tr class="memdesc:a6f84cee3bc8d376971745b00f2eade68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Long index type used for offsets.  <a href="#a6f84cee3bc8d376971745b00f2eade68">More...</a><br /></td></tr>
<tr class="separator:a6f84cee3bc8d376971745b00f2eade68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82a0f199285060d7fe0eaaefa782cfb6"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a82a0f199285060d7fe0eaaefa782cfb6">TensorCoord</a> = <a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a></td></tr>
<tr class="memdesc:a82a0f199285060d7fe0eaaefa782cfb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logical coordinate.  <a href="#a82a0f199285060d7fe0eaaefa782cfb6">More...</a><br /></td></tr>
<tr class="separator:a82a0f199285060d7fe0eaaefa782cfb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad665f29c959f80c965fc5a24ae173f8b"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b">Stride</a> = <a class="el" href="structcutlass_1_1Coord.html">Coord</a>&lt; <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6e67c889ff67dffb7fe78f316ad62838">kStrideRank</a>, <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> &gt;</td></tr>
<tr class="memdesc:ad665f29c959f80c965fc5a24ae173f8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stride vector.  <a href="#ad665f29c959f80c965fc5a24ae173f8b">More...</a><br /></td></tr>
<tr class="separator:ad665f29c959f80c965fc5a24ae173f8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4515c6a78dadf99bf491137e6bb52451"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4515c6a78dadf99bf491137e6bb52451">ContiguousMatrix</a> (<a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> ldm=0, <a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a> layout=<a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a>)</td></tr>
<tr class="memdesc:a4515c6a78dadf99bf491137e6bb52451"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ctor.  <a href="#a4515c6a78dadf99bf491137e6bb52451">More...</a><br /></td></tr>
<tr class="separator:a4515c6a78dadf99bf491137e6bb52451"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d93f4fd30ebb534de71c0b51bb8a0ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a1d93f4fd30ebb534de71c0b51bb8a0ef">operator()</a> (<a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;coord) const </td></tr>
<tr class="separator:a1d93f4fd30ebb534de71c0b51bb8a0ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85bae46a22d05a7d216aefa68188c7f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ab85bae46a22d05a7d216aefa68188c7f">inverse</a> (<a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> offset) const </td></tr>
<tr class="memdesc:ab85bae46a22d05a7d216aefa68188c7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inverse of layout function, mapping linear offset to logical coordinate.  <a href="#ab85bae46a22d05a7d216aefa68188c7f">More...</a><br /></td></tr>
<tr class="separator:ab85bae46a22d05a7d216aefa68188c7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18106fa95703e3cb62761e8ef764ed70"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b">Stride</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a18106fa95703e3cb62761e8ef764ed70">stride</a> () const </td></tr>
<tr class="memdesc:a18106fa95703e3cb62761e8ef764ed70"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout.  <a href="#a18106fa95703e3cb62761e8ef764ed70">More...</a><br /></td></tr>
<tr class="separator:a18106fa95703e3cb62761e8ef764ed70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a189419ce058858e99dbc9990011b6dee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b">Stride</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a189419ce058858e99dbc9990011b6dee">stride</a> ()</td></tr>
<tr class="memdesc:a189419ce058858e99dbc9990011b6dee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout.  <a href="#a189419ce058858e99dbc9990011b6dee">More...</a><br /></td></tr>
<tr class="separator:a189419ce058858e99dbc9990011b6dee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ef21723cf41040fe2e33721a7cc25e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a8ef21723cf41040fe2e33721a7cc25e0">stride</a> (int idx) const </td></tr>
<tr class="memdesc:a8ef21723cf41040fe2e33721a7cc25e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout.  <a href="#a8ef21723cf41040fe2e33721a7cc25e0">More...</a><br /></td></tr>
<tr class="separator:a8ef21723cf41040fe2e33721a7cc25e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa07b705d092fd1f8030a2369b0405353"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#aa07b705d092fd1f8030a2369b0405353">stride</a> (int idx)</td></tr>
<tr class="memdesc:aa07b705d092fd1f8030a2369b0405353"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout.  <a href="#aa07b705d092fd1f8030a2369b0405353">More...</a><br /></td></tr>
<tr class="separator:aa07b705d092fd1f8030a2369b0405353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7266ef6f5ba58567103e8792cb0484b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#af7266ef6f5ba58567103e8792cb0484b">capacity</a> (<a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;extent) const </td></tr>
<tr class="memdesc:af7266ef6f5ba58567103e8792cb0484b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the number of contiguous elements needed to store a tensor with the given size.  <a href="#af7266ef6f5ba58567103e8792cb0484b">More...</a><br /></td></tr>
<tr class="separator:af7266ef6f5ba58567103e8792cb0484b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a4c5f7cb47727b7ca7fdce09984c8669d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html">ContiguousMatrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4c5f7cb47727b7ca7fdce09984c8669d">packed</a> (<a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;extent, <a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a> layout=<a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a>)</td></tr>
<tr class="memdesc:a4c5f7cb47727b7ca7fdce09984c8669d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper returns a layout to a tightly packed tensor.  <a href="#a4c5f7cb47727b7ca7fdce09984c8669d">More...</a><br /></td></tr>
<tr class="separator:a4c5f7cb47727b7ca7fdce09984c8669d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:ab0539a0f69aa086431c00371536ff89b"><td class="memItemLeft" align="right" valign="top">static int const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ab0539a0f69aa086431c00371536ff89b">kRank</a> = 2</td></tr>
<tr class="memdesc:ab0539a0f69aa086431c00371536ff89b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logical rank of tensor.  <a href="#ab0539a0f69aa086431c00371536ff89b">More...</a><br /></td></tr>
<tr class="separator:ab0539a0f69aa086431c00371536ff89b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e67c889ff67dffb7fe78f316ad62838"><td class="memItemLeft" align="right" valign="top">static int const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6e67c889ff67dffb7fe78f316ad62838">kStrideRank</a> = 1</td></tr>
<tr class="memdesc:a6e67c889ff67dffb7fe78f316ad62838"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rank of stride vector.  <a href="#a6e67c889ff67dffb7fe78f316ad62838">More...</a><br /></td></tr>
<tr class="separator:a6e67c889ff67dffb7fe78f316ad62838"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Mapping function for scenario in which layout is row-major or column-major but this information is only available at runtime. </p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="a5cac7085fc5058fce51bc771b94f49d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">cutlass::layout::ContiguousMatrix::Index</a> =  int32_t</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f84cee3bc8d376971745b00f2eade68"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">cutlass::layout::ContiguousMatrix::LongIndex</a> =  int64_t</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad665f29c959f80c965fc5a24ae173f8b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b">cutlass::layout::ContiguousMatrix::Stride</a> =  <a class="el" href="structcutlass_1_1Coord.html">Coord</a>&lt;<a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6e67c889ff67dffb7fe78f316ad62838">kStrideRank</a>, <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a>&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a82a0f199285060d7fe0eaaefa782cfb6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a82a0f199285060d7fe0eaaefa782cfb6">cutlass::layout::ContiguousMatrix::TensorCoord</a> =  <a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4515c6a78dadf99bf491137e6bb52451"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::layout::ContiguousMatrix::ContiguousMatrix </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a>&#160;</td>
          <td class="paramname"><em>ldm</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a>&#160;</td>
          <td class="paramname"><em>layout</em> = <code><a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af7266ef6f5ba58567103e8792cb0484b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> cutlass::layout::ContiguousMatrix::capacity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;&#160;</td>
          <td class="paramname"><em>extent</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab85bae46a22d05a7d216aefa68188c7f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> cutlass::layout::ContiguousMatrix::inverse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a>&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1d93f4fd30ebb534de71c0b51bb8a0ef"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> cutlass::layout::ContiguousMatrix::operator() </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;&#160;</td>
          <td class="paramname"><em>coord</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the offset of a coordinate in linear memory. Assumes coordinate has convention (row, column) </p>

</div>
</div>
<a class="anchor" id="a4c5f7cb47727b7ca7fdce09984c8669d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html">ContiguousMatrix</a> cutlass::layout::ContiguousMatrix::packed </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;&#160;</td>
          <td class="paramname"><em>extent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a>&#160;</td>
          <td class="paramname"><em>layout</em> = <code><a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a18106fa95703e3cb62761e8ef764ed70"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b">Stride</a> cutlass::layout::ContiguousMatrix::stride </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a189419ce058858e99dbc9990011b6dee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b">Stride</a>&amp; cutlass::layout::ContiguousMatrix::stride </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a8ef21723cf41040fe2e33721a7cc25e0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> cutlass::layout::ContiguousMatrix::stride </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa07b705d092fd1f8030a2369b0405353"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a>&amp; cutlass::layout::ContiguousMatrix::stride </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="ab0539a0f69aa086431c00371536ff89b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int const cutlass::layout::ContiguousMatrix::kRank = 2</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a6e67c889ff67dffb7fe78f316ad62838"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int const cutlass::layout::ContiguousMatrix::kStrideRank = 1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="layout_2matrix_8h_source.html">layout/matrix.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
